<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <a href="https://github.com/login/oauth/authorize?client_id=dd242126a14cdf41c33e&redirect_uri=http://localhost:8080/#/index">github授权登录</a>
    <script>
        var xhr=new XMLHttpRequest()
        xhr.open('GET','https://api.github.com/user?access_token=3bead8b91cde95b86a394a65ea6a635b12f1ebf0&scope=user&token_type=bearer')
        xhr.send()
    </script>
</body>
</html>